package day3.demo3_线程中断;

import java.util.Date;

public class B implements Runnable {
    @Override
    public void run() {
        while (true){
            System.out.println(Thread.currentThread().getName()+"当前时间："+new Date());
//            Thread.yield();
        }
    }
}